package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 工作经历对象 gw_staff_work
 *
 * @author ruoyi
 * @date 2025-04-27
 */
public class GwStaffWork extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 员工ID */
    @Excel(name = "员工ID")
    private String staffId;

    /** 公司名称 */
    @Excel(name = "公司名称")
    //@NotBlank(message = "学校名称必填，限输入50个字符")
    @Length(max = 50,message = "学校名称选填，限输入50个字符")
    private String company;

    /** 担任职位 */
    @Excel(name = "担任职位")
    @Length(max = 50,message = "职位选填，限输入50个字符")
    private String post;

    /** 入职日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入职日期", width = 30, dateFormat = "yyyy-MM-dd")
    //@NotNull(message = "入职日期必填")
    private Date emplDate;

    /** 离职日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "离职日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date resignDate;

    /** 职位描述 */
    @Excel(name = "职位描述")
    @Length(max = 500,message = "职位描述限输入500个字符")
    private String postDesc;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }

    public void setStaffId(String staffId)
    {
        this.staffId = staffId;
    }

    public String getStaffId()
    {
        return staffId;
    }

    public void setCompany(String company)
    {
        this.company = company;
    }

    public String getCompany()
    {
        return company;
    }

    public void setPost(String post)
    {
        this.post = post;
    }

    public String getPost()
    {
        return post;
    }

    public void setEmplDate(Date emplDate)
    {
        this.emplDate = emplDate;
    }

    public Date getEmplDate()
    {
        return emplDate;
    }

    public void setResignDate(Date resignDate)
    {
        this.resignDate = resignDate;
    }

    public Date getResignDate()
    {
        return resignDate;
    }

    public void setPostDesc(String postDesc)
    {
        this.postDesc = postDesc;
    }

    public String getPostDesc()
    {
        return postDesc;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("staffId", getStaffId())
            .append("company", getCompany())
            .append("post", getPost())
            .append("emplDate", getEmplDate())
            .append("resignDate", getResignDate())
            .append("postDesc", getPostDesc())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
